﻿@model Authorize.Application.Account.Model.RegisterViewModel

@{
    ViewData["Title"] = "Register";
}

<div class="login-page">
    <div class="page-header">
        <h1>注册</h1>
    </div>
    @Html.Partial("_ValidationSummary")
    <div class="row">
        <div class="col-md-6 col-md-offset-3 col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">注册本地帐号</h3>
                </div>
                <div class="panel-body">
                    <form asp-route="Register" onsubmit="register()">
                        <fieldset>
                            <div class="form-group">
                                <label asp-for="Phone"></label>
                                <input type="text" class="form-control" placeholder="手机号码" asp-for="Phone" />
                            </div>
                            <div class="form-group">
                                <label asp-for="Password"></label>
                                <input type="password" class="form-control" placeholder="密码" asp-for="Password" autocomplete="off">
                            </div>
                            <div class="form-group">
                                <label asp-for="ConfirmPassword"></label>
                                <input type="password" class="form-control" placeholder="确认密码" asp-for="ConfirmPassword" autocomplete="off">
                            </div>
                            <div class="form-group">
                                <label asp-for="Email"></label>
                                <input type="email" class="form-control" placeholder="邮箱" asp-for="Email" />
                            </div>
                            <input type="hidden" name="returnUrl" value="@ViewBag.returnUrl" />
                            <div class="form-group">
                                <button class="btn btn-primary" name="submit" value="login">注册</button>
                                <button class="btn btn-default" name="button" value="cancel">取消</button>
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

